<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>倒计时跳转</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f0f0f0;
            margin: 0;
        }
        .container {
            text-align: center;
            background: #ffffff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #2c3e50;
        }
        p {
            color: #34495e;
            font-size: 18px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>页面将在 <span id="countdown">5</span> 秒后跳转到首页</h1>
    </div>

    <script>
        // 设置倒计时时间（秒）
        let countdownTime = 5;
        const countdownElement = document.getElementById("countdown");

        // 更新倒计时
        const countdownInterval = setInterval(() => {
            countdownElement.textContent = countdownTime;
            countdownTime--;

            // 当倒计时结束时，跳转到首页
            if (countdownTime < 0) {
                clearInterval(countdownInterval);
                window.location.href = "http://47.98.230.86:8082/"; // 替换为你的首页地址
            }
        }, 1000); // 每秒更新一次
    </script>
</body>
</html>